package com.hl.mapper;

import com.hl.domain.Publicity;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
* @author 28252
* @description 针对表【publicity(资讯公告表，用于存储用户通知展示信息)】的数据库操作Mapper
* @createDate 2024-09-09 10:51:49
* @Entity com.hl.domain.Publicity
*/
public interface PublicityMapper {

    //增加数据
    int insert(Publicity record);
    //    根据id删除
    int deleteByPrimaryKey(Long id);

    int insertSelective(Publicity record);
    //    根据id更新
    Publicity selectByPrimaryKey(Long id);
    //    修改数据
    int updateByPrimaryKeySelective(Publicity record);

    int updateByPrimaryKey(Publicity record);

    //    查询全部信息查询
    List<Publicity> queryAll();
	 List<Publicity> selectAll();

    //    标题和时间查询
    List<Publicity> queryByTitleAndTime(@Param("name") String name, @Param("begintime") LocalDateTime begintime, @Param("endtime") LocalDateTime endtime);


}
